<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2022-10-14
 * Time: 21:32
 */
namespace App\server ;
use Psr\SimpleCache\CacheInterface;
use think\facade\Cache as C;
class  Cache implements CacheInterface
{
    public function get($key, $default = null)
    {
       return C::get($key, $default);
    }
    public function set($key, $value, $ttl = null)
    {
        return C::set($key, $value, $ttl );
    }
    public function delete($key){
        return C::delete($key);
    }
    public function clear()
    {
        C::clear();
    }
    public function getMultiple($keys, $default = null)
    {
        return C::getMultiple($keys, $default );
    }
    public function setMultiple($values, $ttl = null)
    {
        return C::setMultiple($values, $ttl  );
    }

    public function deleteMultiple($keys)
    {
        return C::deleteMultiple($keys  );
    }
    public function has($key){
        return C::has($key);
    }
}